#include<iostream>
using namespace std;


int  Hailstone(int n)
{
	if (n <=1)
	{
		n = 1;
		return 0;
	}
	else if(n % 2)
	{
		n = 3 * n + 1;
		return 1+Hailstone(n);
	}
	else
	{
		n /= 2;
		return 1+Hailstone(n);
	}

}

int main()
{
	int n = 32;
	int count=Hailstone(97);
	cout << count << endl;

	system("pause");
	return 0;
}


